package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.AccidentDetail;
import cn.wolfcode.crm.query.impl.AccidentDetailQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccidentDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AccidentDetail record);

    AccidentDetail selectByPrimaryKey(Long id);

    List<AccidentDetail> selectAll();

    int updateByPrimaryKey(AccidentDetail record);

    int queryForCount(AccidentDetailQuery qo);

    List<AccidentDetail> queryForList(AccidentDetailQuery qo);

    void changeState(Long id);

    int queryForCountByState(AccidentDetailQuery qo);

    List<AccidentDetail> queryForListByState(AccidentDetailQuery qo);

    void changeCheckState(@Param("id") Long id , @Param("checkState") boolean checkState);

    int queryForCountByCheck(AccidentDetailQuery qo);

    List<AccidentDetail> queryForListByCheck(AccidentDetailQuery qo);
}